import builder.ComputerBuilder;
import concreteBuilder.GamingComputerBuilder;
import concreteBuilder.OfficeComputerBuilder;
import director.ComputerDirector;
import product.Computer;

public class Client {
    public static void main(String[] args) {
        // 构建游戏电脑
        ComputerBuilder gamingBuilder = new GamingComputerBuilder();
        ComputerDirector gamingDirector = new ComputerDirector(gamingBuilder);
        gamingDirector.constructComputer();
        Computer gamingComputer = gamingDirector.getComputer();
        System.out.println("Gaming Computer: " + gamingComputer);

        // 构建办公电脑
        ComputerBuilder officeBuilder = new OfficeComputerBuilder();
        ComputerDirector officeDirector = new ComputerDirector(officeBuilder);
        officeDirector.constructComputer();
        Computer officeComputer = officeDirector.getComputer();
        System.out.println("Office Computer: " + officeComputer);
    }
}